Dashboard creation

Undercurrent uses Grafana for analytics dashboards. You get your own Grafana organization with a pre-configured SQL data source connected to your events. You can build dashboards by hand, but this work is well suited to an AI coding harness.

Delegating to an AI harness

Paste this prompt into your coding harness in your app repo. It reads your app’s analytics events from the source code, designs dashboards, and creates them over the Grafana HTTP API, using the credentials contained in your credentials file.

What it covers

The prompt directs your AI harness to design panels around the three groups of metrics that matter most for a growing app:

  • Activation: Are new users reaching the point where the app becomes useful?
  • Engagement: Which features and screens are used, and how often?
  • Retention: Are users coming back over time, and to which features?

It prefers a small number of dashboards (ideally one), smoke-tests every panel query against your live data, and then it should give you links to the dashboards it created.

The panel queries are written in SQL against your events table. See SQL queries for the schema and dialect.

Viewing and editing dashboards

Go to grafana.undercurrentanalytics.dev and sign in with the username and password from your credentials file. From there you can browse the dashboards, tweak panels, or build new ones directly. You can always ask your AI coding harness to edit the dashboards or create new ones by including the following prompt fragment:

← Back to undercurrentanalytics.dev